package com.xiyue.leaspring.vo;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(locations = {"classpath:spring/spring-base9.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class EmpTest9 {

	@Resource(name="dept1")
	private Dept9 dept1;
	@Resource(name="dept2")
	private Dept9 dept2;
	@Resource(name="dept3")
	private Dept9 dept3;
	
	@Test
	public void testEmp() {
		System.out.println("部门编号1:"+this.dept1.getDeptno()+"\t部门名称1:"+this.dept1.getDname());
		System.out.println("部门编号2:"+this.dept2.getDeptno()+"\t部门名称2:"+this.dept2.getDname());
		System.out.println("部门编号3:"+this.dept3.getDeptno()+"\t部门名称3:"+this.dept3.getDname());
	}

}
